//
//  BaseTableViewHeaderFooterView.h
//  乡易秀商户端
//
//  Created by delicious on 17/8/30.
//  Copyright © 2017年 chen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HLTextView.h"
#import "HLTextField.h"

@interface BaseTableViewHeaderFooterView : UITableViewHeaderFooterView
@property (nonatomic, strong) UIImageView  *imageView;
@property (nonatomic, strong) HLTextField  * textField;
@property (nonatomic, strong) HLTextView   * textView;
@property (nonatomic, strong) UIButton     * button;
- (id)initWithViewController:(UIViewController *)ViewController reuseIdentifier:(NSString *)reuseIdentifier forDataSource:(id)dataSource AtSection:(NSInteger)section;

@end


@interface UITableViewHeaderFooterView (OF)
-(void)onAsInitAddView:(UIView *)view forViewController:(UIViewController *)ViewController forDataSource:(id)dataSource AtSection:(NSInteger)section;

- (void)update:(id)model forTableView:(UITableView *)tableView AtSection:(NSInteger)section;

@property (nonatomic, assign) NSInteger section;


- (void)onTextForBlock:(TextBlcok)blcok;

- (void)onButtonForBlock:(ButtonBlcok)blcok;


@end
